<%@ page import="com.informet.ipd.modelo.dao.APermanenteDao" %>
<%@ page import="com.informet.ipd.modelo.vo.APermanenteVO" %>
<%@ page import="com.informet.ipd.struts.form.PEIForm" %>
<%@ page import="java.util.*" %>
<%@ page import="javax.swing.JOptionPane"%>
<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/tags/c" prefix="c"%>

<%

            StringBuffer cadenaSalida = new StringBuffer();
            List lista = null;

          
            APermanenteDao supportFacade = new APermanenteDao();
            PEIForm form = new PEIForm();
            
            try {
                
                int id = Integer.parseInt(request.getParameter("id"));

               
                APermanenteVO vo;
                lista = supportFacade.getCombo(id);
                form.setListaActPer(lista);
                
                cadenaSalida.append("<select  name='codActPer' id='codActPer' onchange='filtradoAPermanente()' styleClass='select' style='width: 400px'>");
                cadenaSalida.append(" <option value='-1'>[--Seleccionar Actividad Estrat&eacute;gica--]</option>");

                Iterator it = lista.iterator();
                while (it.hasNext()) {
                    vo = (APermanenteVO) it.next();

                   
                    cadenaSalida.append("<option value='"+vo.getNUM_CODACTPER_PK()+"'>"+vo.getTX_DESCACTPER()+"</option>");
                  

                   
                }
                 cadenaSalida.append("</select>");
            } catch (Exception e) {
              cadenaSalida.append("error : "+e.toString());
            }
            out.print(cadenaSalida);
%>